/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package archetypes

/**
 *
 * @author jugomez
 */

class Nodo {
    InfoNodo info
    
    List<Nodo> hijos = new LinkedList<Nodo>()
    Nodo padre				 
    String identif
    String path
    String nombre
    String tipo	
    
    public String getInfoName(){
        String infoClassName = null
        if(this.info != null){
            infoClassName = this.info.getClass().name
        } 
        
        return infoClassName != null ? infoClassName.substring(infoClassName.lastIndexOf(".")+1) : ""
    }
}

